package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 系统通知
 */
@Getter
@Setter
public class SystemMsg extends BaseDomain {

    private User msger;//被通知人

    private String content;//通知内容

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date msgDate;//通知时间

    private boolean isViewed;//通知是否被查看

    private Travel travel;//被通知游记

}